@import '../../global.less';

.modal {
  position: fixed;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: scroll;

  .main {
    position: absolute;
    top: 20%;
    left: 50%;
    padding: 45 / @vw 65 / @vw 65 / @vw;
    width: 620 / @vw;
    transform: translate(-50%, 0);
    background-color: #ffffff;
    border-radius: 20px;
    animation: scaleShow 0.4s ease-in-out;
    box-shadow: 0px 8px 29px 0px rgba(207, 117, 0, 0.19),
      0px 0px 10px 0px rgba(187, 73, 4, 0.18);
    text-align: justify;

    .title {
      font-size: 44 / @vw;
      font-family: PingFang SC;
      font-weight: 600;
      color: @base-font-color;
      display: flex;
      justify-content: center;
      align-items: center;

      .iconTitleLabel {
        width: 26 / @vw;
        height: 20 / @vw;
      }

      .text {
        margin: 0 18 / @vw;
      }
    }

    .btnGrp {
      display: flex;
      justify-content: center;
      align-items: center;

      .oneBtn {
        flex: 1;
        height: 88 / @vw;
        line-height: 88 / @vw;
        font-size: 30 / @vw;
        font-family: PingFang SC;
        font-weight: 600;
        color: #ffffff;
        text-align: center;
        background: linear-gradient(
          90deg,
          rgba(255, 185, 10, 1),
          rgba(255, 162, 24, 1)
        );
        border-radius: 30px;
        box-shadow: 0px 6px 10px 0px rgba(255, 198, 47, 0.4);
      }

      .twoBtn {
        flex: 1;
        height: 88 / @vw;
        line-height: 88 / @vw;
        font-size: 30 / @vw;
        font-family: PingFang SC;
        font-weight: 600;
        color: #999999;
        text-align: center;
        background: #f2f2f2;
        border-radius: 30px;

        &:last-child {
          margin-left: 17 / @vw;
          color: #ffffff;
          background: linear-gradient(
            90deg,
            rgba(255, 185, 10, 1),
            rgba(255, 162, 24, 1)
          );
          border-radius: 30px;
          box-shadow: 0px 6px 10px 0px rgba(255, 198, 47, 0.4);
        }
      }
    }
  }
}

@keyframes scaleShow {
  0% {
    transform: translate(-50%, 0) scale3d(0.3, 0.3, 0.3);
  }

  70% {
    transform: translate(-50%, 0) scale3d(1.1, 1.1, 1.1);
  }

  90% {
    transform: translate(-50%, 0) scale3d(0.98, 0.98, 0.98);
  }

  100% {
    transform: translate(-50%, 0) scale3d(1, 1, 1);
  }
}
